﻿using System;

namespace AdbService
{
    /// <summary>
    /// ADB命令执行事件参数
    /// </summary>
    public class AdbCommandEventArgs : EventArgs
    {
        public string Command { get; set; }
        public string Result { get; set; }
        public string OperationName { get; set; }
        public bool IsError { get; set; }
        public DateTime Timestamp { get; set; }

        public AdbCommandEventArgs(string command, string result, string operationName = "", bool isError = false)
        {
            Command = command;
            Result = result;
            OperationName = operationName;
            IsError = isError;
            Timestamp = DateTime.Now;
        }
    }

    /// <summary>
    /// ADB命令执行事件委托
    /// </summary>
    public delegate void AdbCommandEventHandler(object sender, AdbCommandEventArgs e);
}